
package webClient.UserInterfaceClasses;

import server.BuddyList;
import server.Person;
import server.Preferences;

import server.*;
import communication.*;

import communication.SignOffRequest;


public class BuddyList1
{	
	public static String user;
	public static Person person;
	public static BuddyList buddies;
	public static Preferences preferences;
	private static Status status;
	
	public BuddyList1(){
		
	}
	public static void buddyListRequest(BuddyPreferencesRequest request) {
		
		user = request.getSender();
		buddies = request.getBuddyList();
		
	}
	
	public static void buddyStaticRequest(BuddyStatusChangedRequest request){
		
		status = request.getStatus();
	}
	
	
	public static BuddyList getUserBuddies(String username){
		
		
		if(username.equals(user)){
			return buddies;
		}
		else{
			return null;
		}
	
	}

	public static Status getStatus()
	{
		return status;
	}
	

}
